package com.example.demo.model.mnt;

import xyz.erupt.annotation.Erupt;
import xyz.erupt.annotation.EruptField;
import xyz.erupt.annotation.sub_field.Edit;
import xyz.erupt.annotation.sub_field.EditType;
import xyz.erupt.annotation.sub_field.View;
import xyz.erupt.annotation.sub_field.sub_edit.Search;
import xyz.erupt.annotation.sub_field.sub_edit.SliderType;
import xyz.erupt.core.annotation.EruptDataSource;
import xyz.erupt.jpa.model.BaseModel;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@EruptDataSource("mnt")
@Table(name = "mnt_app")
@Entity
@Erupt(name = "app信息")
public class MntApp extends BaseModel{

  @EruptField(
          views = @View(title = "名称"),
          edit = @Edit(title = "名称", notNull = true, search = @Search)
  )
  private String name;
  @EruptField(
          views = @View(title = "代码"),
          edit = @Edit(title = "代码", notNull = true, search = @Search)
  )
  private String code;

  @EruptField(
          views = @View(title = "在线"),
          edit = @Edit(title = "在线", notNull = true, search = @Search)
  )
  private String active;

  @EruptField(
          views = @View(title = "状态"),
          edit = @Edit(title = "状态", notNull = true, search = @Search)
  )
  private long status;



  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }


  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }


  public String getActive() {
    return active;
  }

  public void setActive(String active) {
    this.active = active;
  }


  public long getStatus() {
    return status;
  }

  public void setStatus(long status) {
    this.status = status;
  }


}
